<template>
  <div>
    <el-dialog
    :title="this.tielename"
    :visible.sync="aaa"
    :before-close="handleClose"
    width="50%"
    >
        <slot></slot>

        <span slot="footer" class="dialog-footer">
            <el-button @click="change">取 消</el-button>
            <el-button type="primary" @click="addCase()">确 定</el-button>
        </span>
    </el-dialog>
  </div>
</template>

<script>
/* eslint-disable vue/no-mutating-props */
export default {
  props: ['tielename', 'addCase'],
  data () {
    return {
      aaa: true
    }
  },
  methods: {
    handleClose () {
      this.aaa = false
      this.$emit('change')
    },
    change () {
      this.$emit('change')
    }
  }
}
</script>

<style scoped lang="less">

</style>
